<?php
/**
 * Created by PhpStorm.
 * User: lhan
 * Date: 10/13/15
 * Time: 11:13
 */
define("SMARTY_DIR", "vendor/smarty/smarty/libs/");
require_once(SMARTY_DIR . 'Smarty.class.php');

$smarty = new Smarty();

$smarty->setTemplateDir('view/');
$smarty->setCompileDir('tmp/templates_c/');
$smarty->setConfigDir('tmp/configs/');
$smarty->setCacheDir('tmp/cache/');

$smarty->assign('name', 'Ned');

//** un-comment the following line to show the debug console
//$smarty->debugging = TRUE;

$smarty->display('view/index.tpl');
